package com.zs.java.newFeatures;

/**
 * @author madison
 * @description
 * @date 2021/5/26 11:10
 */
public class User {
    private Location location;

    public User(Location location) {
        this.location = location;
    }

    public Location getLocation() {
        return location;
    }
}

class Location {
    private City city;

    public City getCity() {
        return city;
    }
}

class City {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}